<?php
/**
 * Created by PhpStorm.
 * User: FDG367
 * Date: 2018/4/8
 * Time: 13:35
 */
namespace common\models;
use Yii;
use yii\db\ActiveRecord;

class GoodsNavigationIdentificationRelation extends ActiveRecord{

	public static function tableName(){
		return '{{%goods_navigation_identification_relation}}';
	}

	//获取对应导航标识对应的数据 没有判断当前主商品是否下架 TODO
	public static function getAll($navigation_identification_id){
		return self::find()->where([
			'navigation_identification_id'=>$navigation_identification_id
		])->all();
	}
}

?>